<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/market/marketActivity.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/common.css?v=20200825">
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>卡券管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>活动列表</strong>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <input type="hidden" value="${orginId}" id="orginId">
                <div class="row">
                    <input id="activityName" name="activityName" type="text" class="form-control longInput input-distance"
                           placeholder="活动名称">
                    <select name="activityType" id="activityType" class="form-control shortInput input-distance">
                        <option value="">活动类型</option>
                        <option value="1">充值</option>
                        <option value="3">满减</option>
                        <option value="4">满返</option>
                        <option value="5">拉新</option>
                    </select>
                    &nbsp;
                    <button class="btn btn-success input-distance" onclick="marketActivity.reLoad()">查询</button>
                    <button class="btn btn-success input-distance" style="margin-left: 20px;" onclick="marketActivity.addMarketActivity()">新增活动</button>
                    <%--<div class="pull-left search col-md-9">
                    </div>

                    <div class="pull-right col-md-1">
                        <button type="button" class="btn  btn-primary"
                                onclick="layer.alert('https://wxchannel.jin-zhuang.cn/jinzhuang-saas-wechat/toShare/newUserRegister/' + $('#orginId').val(),{title:'活动链接'})">
                            活动链接
                        </button>
                    </div>
                    <div class="pull-right col-md-1">
                        <button type="button" class="btn  btn-primary" onclick="marketActivity.marketActivityRecord()">
                            活动记录
                        </button>
                    </div>
                    <div id="controlDiv" class="pull-right col-md-1">
                        <button type="button" class="btn  btn-primary"
                                onclick="marketActivity.editMarketActivity()">
                            编辑
                        </button>
                        <div class="pull-right col-md-1">
                            <button type="button" class="btn  btn-primary"
                                    onclick="marketActivity.updateMarketActivityStatus()">
                                <span id="status">无数据</span>
                            </button>
                            <input id="marketActivityId" type="hidden">
                        </div>
                    </div>
                </div>--%>
                    &nbsp;
                    <div class="pull-left search fr">
                        <button class="btn btn-success input-distance exportBtn" onclick="marketActivity.exportInfo()">导出</button>
                    </div>

                    <table id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="wrapper wrapper-content " id="windowBox" style="display: none;">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="consumpNum" name="consumpNum" type="text" class="form-control longInput input-distance"
                           placeholder="周期内消费次数">
                    <select name="memberType" id="memberType" class="form-control shortInput input-distance">
                        <option value="">用户类型</option>
                        <option value="0">个人用户</option>
                        <option value="2">企业用户</option>
                        <option value="3">互联互通用户</option>
                        <option value="10">会员</option>
                    </select>
                    <input id="memberAddress" name="memberAddress" type="text" class="form-control shortInput input-distance" placeholder="地区">
                    <%--<select name="memberAddress" id="memberAddress" class="form-control shortInput input-distance">
                        <option value="">地区</option>
                        <option value="1">充值</option>
                        <option value="3">满减</option>
                        <option value="4">满返</option>
                        <option value="5">拉新</option>
                    </select>--%>
                    <input id="changeNum" name="changeNum" type="text" class="form-control longInput input-distance"
                           placeholder="周期内充值次数">
                    <select name="memberLevel" id="memberLevel" class="form-control shortInput input-distance">
                        <option value="">会员级别</option>
                        <option value="V1">V1</option>
                        <option value="V2">V2</option>
                        <option value="V3">V3</option>
                        <option value="V4">V4</option>
                        <option value="V5">V5</option>
                        <option value="V6">V6</option>
                        <option value="V7">V7</option>
                        <option value="V8">V8</option>
                        <option value="V9">V9</option>
                        <option value="V10">V10</option>
                    </select>
                    <input id="registerTime" name="registerTime" type="text" class="form-control layer-date shortInput" placeholder="注册时间">
                    &nbsp;
                    <button class="btn btn-success input-distance" id="memberFind" data="" onclick="activityMember(null)">搜索</button>
                    <button class="btn btn-success input-distance" style="margin-left: 20px;" onclick="rest()">重置</button>
                    <table id="activityMember" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    marketActivity.init();
</script>
</body>
</html>
